package yxy.cherry.battle.module.selector;


import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.Team;
import yxy.cherry.battle.module.Position;
import java.util.Set;

@TargetSelectorType(Type = 37)
public class TargetSelector_37_自己这列 extends TargetSelector{
    @Override
    public Set<Fighter> target(Fighter actor, Team team, int param1, int param2) {
        Position position = actor.getPosition();
        int paramS = param1;
        switch (position){
            case FU:
            case FM:
            case FD:
            {
                Set<Fighter> set = getLine(position, team);
                if(set == null){
                    set = getLine(Position.BU,team);
                }
                return randomTarget(set, param1, param2);

            }
            case BU:
            case BM:
            case BD:
            {
                Set<Fighter> set = getLine(position, team);

                if(set == null){
                    set = getLine(Position.FU,team);
                }
                return randomTarget(set, param1, param2);
            }
        }
        return null;
    }
}
